<%@ page import="quanlythuvien.PhieuTraSach" %>



<div class="fieldcontain ${hasErrors(bean: phieuTraSachInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="phieuTraSach.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="50" required="" value="${phieuTraSachInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuTraSachInstance, field: 'ngayTra', 'error')} required">
	<label for="ngayTra">
		<g:message code="phieuTraSach.ngayTra.label" default="Ngay Tra" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="ngayTra" precision="day"  value="${phieuTraSachInstance?.ngayTra}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: phieuTraSachInstance, field: 'maNhanVien', 'error')} required">
	<label for="maNhanVien">
		<g:message code="phieuTraSach.maNhanVien.label" default="Ma Nhan Vien" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maNhanVien" name="maNhanVien.id" from="${quanlythuvien.NhanVien.list()}" optionKey="id" required="" value="${phieuTraSachInstance?.maNhanVien?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuTraSachInstance, field: 'maTheDocGia', 'error')} required">
	<label for="maTheDocGia">
		<g:message code="phieuTraSach.maTheDocGia.label" default="Ma The Doc Gia" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maTheDocGia" name="maTheDocGia.id" from="${quanlythuvien.TheDocGia.list()}" optionKey="id" required="" value="${phieuTraSachInstance?.maTheDocGia?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuTraSachInstance, field: 'tongTien', 'error')} required">
	<label for="tongTien">
		<g:message code="phieuTraSach.tongTien.label" default="Tong Tien" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="tongTien" step="any" required="" value="${phieuTraSachInstance.tongTien}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuTraSachInstance, field: 'tinhTrang', 'error')} required">
	<label for="tinhTrang">
		<g:message code="phieuTraSach.tinhTrang.label" default="Tinh Trang" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="tinhTrang" required="" value="${phieuTraSachInstance.tinhTrang}"/>
</div>

